
package data;

import java.io.Serializable;

public class Product implements Serializable{

    private static int IDDistributor = 0;
    private int ID;
    private String title;
    private String description;
    private String category;
    private float cost;


/**
     * Product Product(String title, String description, String category, float cost)
     * 
     * "Dimiourgia antikeimenou typoy Product , me parametrous to title , description,category kai cost
     * arxikopoiei to antikeimeno tipou Product"
     * @param title
     * @param description
     * @param category
     * @param cost
     */

    public Product(String title, String description, String category, float cost) {
        this.ID = IDDistributor++;
        this.title = title;
        this.description = description;
        this.category = category;
        this.cost = cost;
    }
/**
     * Product getID()
     * 
     * "Epistrefei to monadiko ID tou trexontos antikeimenou."
     * @return int Product's ID
     */
    public int getID() {
        return ID;
    }
/**
     * Product getCategory()
     * 
     * "Epistrefei tin katigoria tou proiontos.O tipos tou antikeimenou einai String"
     * @return String Katigoria tou proiontos
     */

    public String getCategory() {
        return category;
    }

/**
     * Product setCategory(String category)
     * 
     * "Dimiourgi tin katigoria tou trexontos proiontos"
     * @param category
     
     */
    public void setCategory(String category) {
        this.category = category;
    }
/**
     * Product getCost()
     * 
     * "Epistrefei tin timi Cost tou antistoixou proiontos.I timi auti einai tipou Float"
     * @return float Costos tou proiontos
     */

    public float getCost() {
        return cost;
    }
/**
     * Product setCost(float cost)
     * 
     * "Orizei to kostos tou trexontos proiontos.I timi auti einai tipou float"
     * @param cost
     */

    public void setCost(float cost) {
        this.cost = cost;
    }
/**
     * Product getDescription()
     * 
     * "Epistrefei tin perigrafi tou antikeimenou.I timi pou epistrefetai einai tipou String"
     * @return String Perigrafi tou proiontos
     */

    public String getDescription() {
        return description;
    }
/**
     * Product setDescription(String description)
     * 
     * "Orizei ti perigrafi tou trexontos proiontos.Pairnei san parametro tin perigrafi tou proiontos se ena String"
     * @param description
     *
     */

    public void setDescription(String description) {
        this.description = description;
    }

/**
     * Product getTitle()
     * 
     * "Epistrefei ton titlo tou proiontos.O tipos pou epistrefei mia timi String"
     * @ return String Titlos tou proiontos
     */

    public String getTitle() {
        return title;
    }
/**
     * Product setTitle(String title)
     * 
     * "Orizei ton titlo tou trexontos proiontos.I sinartisi dexetai mia timi String pou einai kai to onoma tou proiontos"
     * @param title
     */
    public void setTitle(String title) {
        this.title = title;
    }
    
}
